package com.shop.cereshop.app.service.location.impl;

import com.shop.cereshop.app.dao.location.CereCityDetailMapper;
import com.shop.cereshop.app.service.location.CityService;
import com.shop.cereshop.commons.domain.city.CereCityDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CityServiceImpl implements CityService {

    @Autowired
    private CereCityDetailMapper cityDetailMapper;

    public CereCityDetail findCityByCoordinates(double lon, double lat) {
        return cityDetailMapper.findCityByCoordinates(lon, lat);
    }
}
